package com.ydd.app.dao;


import java.util.List;

import com.ydd.app.bean.common.CompanyInfoBean;
import com.ydd.app.bean.common.CompanyTypeBean;
import com.ydd.app.bean.common.ConfigTypeBean;
import com.ydd.app.bean.input.CreateCompanyRequest;
import com.ydd.app.bean.input.CreateConfigTypesRequest;
import com.ydd.app.bean.input.UpdateDisplayFieldRequest;

public interface CompanyDao {

	public CompanyInfoBean queryCompanyInfo(final String ssId,final boolean isDispaly);
	
	public List<CompanyInfoBean> queryCompanyInfos(final String companyTypeId,final int page, final int pageCount);
	
	public int queryCompanyCount(final String companyTypeId);
	
	public List<ConfigTypeBean> queryNewestCompanyInfos( final int pageCount);
	
	public List<ConfigTypeBean> queryConfigTypes();
	
	public boolean queryConfigTypeIsExist(final String typeId);
	
	public List<CompanyTypeBean> queryCompanyTypes();
	
	public boolean createCompany(final CreateCompanyRequest request);
	
	public boolean createCOnfigType(final CreateConfigTypesRequest request);
	
	public boolean updateDisplayField(final UpdateDisplayFieldRequest request);
	
}
